Skip to content

Conversation

@zuoyaofu
Copy link
Contributor

@zuoyaofu zuoyaofu commented Mar 21, 2025

Problem

Solution

Some users are reporting S3 upload failures but we don't have the id2 that S3 team requires to investigate further.
Emit amazonq_createUpload metric with id2, and add logs for these ids so customers can use too.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@zuoyaofu zuoyaofu marked this pull request as ready for review March 26, 2025 09:00
@zuoyaofu zuoyaofu requested a review from a team as a code owner March 26, 2025 09:00
"description": "Metric-defined identifier"
},
{
"name": "id2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name is too generic to be meaningful. "eg: Whats id2 is it more special than the id field?"

If it is s3 specific, would it make sense to name it s3_id2? Could it be generalized to something like responseHeader?

Copy link
Contributor Author

@zuoyaofu zuoyaofu Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update! It is not specific to S3, but I guess I can also name it requestId2. Thanks for pointing that out.

{
"name": "id2",
"type": "string",
"description": "x-amz-id-2 for S3 Upload Debugging"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its great to see an example, but please add a proper description to explain the field.

Copy link
Contributor

@awschristou awschristou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving the change to unblock some priority work. There's a good chance this new field will be revisited for a potential rename.

@awschristou awschristou merged commit 2375ef8 into aws:main Mar 26, 2025
5 checks passed
justinmk3 pushed a commit to aws/aws-toolkit-vscode that referenced this pull request Mar 27, 2025
## Problem
Some users are reporting S3 upload failures but we don't have the id2
that S3 team requires to investigate further.

Related Commons change:
[#1005](aws/aws-toolkit-common#1005)

## Solution
Emit amazonq_createUpload metric with id2, and add logs for these ids so
customers can use too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants